package com.wang.lottery.domain.strategy.service.draw;

import com.wang.lottery.domain.activity.model.po.Award;
import com.wang.lottery.domain.strategy.model.aggregates.StrategyRich;
import com.wang.lottery.domain.strategy.repository.IStrategyRepository;

import javax.annotation.Resource;

/**
 * @author wjh
 * @create 2023-11-02 18:49
 */
public class DrawStrategySupport extends DrawConfig{
    @Resource
    protected IStrategyRepository strategyRepository;

    /**
     * 查询策略配置信息
     *
     * @param strategyId 策略ID
     * @return 策略配置信息
     */
    public StrategyRich queryStrategyRich(Long strategyId) {
        return strategyRepository.queryStrategyRich(strategyId);
    }

    /**
     * 查询奖品详情信息
     *
     * @param awardId 奖品ID
     * @return 中奖详情
     */
    public Award queryAwardInfoByAwardId(String awardId) {
        return strategyRepository.queryAwardInfo(awardId);
    }
}
